/**
 * 
 */
package com.sci.web.action.datareportseason;

import javax.annotation.Resource;

import com.sci.web.action.util.BaseAction;
import com.sci.web.dao.DataReportM_ProjectDao;

/**
 * @author  BaiFuyou
 * @date: Nov 5, 2011 11:24:56 AM
 * 国家计划
 */
public class GetAllEnterprise_ProjectdByIdAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6187108093812565050L;
	@Resource
	private DataReportM_ProjectDao dataReportM_ProjectDao;
	private int uid;
	/**
	 * @return the uid
	 */
	public int getUid() {
		return uid;
	}
	/**
	 * @param uid the uid to set
	 */
	public void setUid(int uid) {
		this.uid = uid;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		super.setContentType(super.JSON);
		super.outPrint(super.getJSONArrayString(dataReportM_ProjectDao.getAllEnterpriseProject(uid)));
		return "json";
	}
}
